<?php
/*********************/
/*                   */
/*  Version : 5.1.0  */
/*  Author  : RM     */
/*  Comment : 071223 */
/*                   */
/*********************/

include_once( JIEQI_ROOT_PATH."/lib/template/template.php" );
$jieqiTpl =& jieqitpl::getinstance( );
$jieqiTpl->setcaching( 0 );
$jieqiTpl->assign( array(
		"jieqi_themeurl" => JIEQI_URL."/templates/admin/",
		"jieqi_sitename" => JIEQI_SITE_NAME,
		"jieqi_email" => JIEQI_CONTACT_EMAIL,
		"meta_keywords" => JIEQI_META_KEYWORDS,
		"meta_description" => JIEQI_META_DESCRIPTION,
		"meta_copyright" => JIEQI_META_COPYRIGHT
) );
$jieqiTpl->assign_by_ref( "jieqi_modules", $jieqiModules );
if ( defined( "JIEQI_SILVER_USAGE" ) && JIEQI_SILVER_USAGE == 1 )
{
		$jieqiTpl->assign( "jieqi_silverusage", 1 );
}
else
{
		$jieqiTpl->assign( "jieqi_silverusage", 0 );
}
$jieqiTpl->assign( "jieqi_thisurl", jieqi_addurlvars( array( ), true, false ) );
if ( !empty( $modconfig['title'] ) )
{
		$jieqiTpl->assign( "jieqi_pagetitle", $modconfig['title'] );
}
if ( empty( $jieqi_pagetitle ) )
{
		$jieqi_pagetitle = JIEQI_SITE_NAME;
}
$jieqiTpl->assign( "jieqi_pagetitle", $jieqi_pagetitle );
if ( !empty( $jieqi_pagehead ) )
{
		$jieqiTpl->assign( "jieqi_head", $jieqi_pagehead );
}
else
{
		$jieqiTpl->assign( "jieqi_head", "" );
}
$norecord = array( "index.php", "top.php", "left.php", "login.php" );
$tmpstr = $_SERVER['PHP_SELF'] ? strtolower( basename( $_SERVER['PHP_SELF'] ) ) : strtolower( basename( $_SERVER['SCRIPT_NAME'] ) );
if ( !in_array( $tmpstr, $norecord ) )
{
		$GLOBALS['_SESSION']['adminurl'] = jieqi_addurlvars( array( ) );
}
?>
